<?php
require_once("../config.php");
require_once(_SRC_."/dao/PageDao.php");

require_once _SRC_."/domain/PageTemplate.php";
require_once(_SRC_."/dao/PageTemplateDao.php");
?>

<script  type="text/javascript" src="../static/js/kindeditor/kindeditor.js"></script>
<script  type="text/javascript" src="../static/js/kindeditor/lang/zh_CN.js"></script>

<?php

$pageId = $_GET["pageId"];
$pageDao = new PageDao();
$page = $pageDao->getPage($pageId);

$pageTemplateDao = new PageTemplateDao();
$pageTemplate = $pageTemplateDao->getPageTemplate($page->templateId);

require_once(__ROOT__."/resources/templates/admin/".$pageTemplate->path);
?>